package com.qf.mapper;
import com.qf.pojo.SysUsers;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;
public interface UserMapper {
    /**
     * 根据用户名, 查询用户对象
     * @param userName
     * @return
     */
    public SysUsers findUserByName(@Param("userName") String userName);

    /**
     * 根据用户id查询该用户的角色集合
     * @param uid
     * @return
     */
    public List<String> findRolesByUid(@Param("uid") int uid);

    /**
     * 根据用户id查询该用户的权限集合
     * @param uid
     * @return
     */
    public List<String> findPermByUid(@Param("uid") int uid);

    /**
     * 查询所有用户数据返回
     * @return
     */
    public List<SysUsers> findUserAll();
}
